package com.grm.job;

import com.grm.utils.DateUtils;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

@Slf4j
public class SampleJob implements Job {
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        log.info("执行任务的时间点为：{}" + DateUtils.dateToDateStr(new Date(), DateUtils.DATE_FORMAT));
    }
}

